package com;

public class Pickup extends Car {

	private int personNum;
	private int goodsNum;
	
	public Pickup() {
		this.price = 0;
		this.personNum = 0;
		this.goodsNum = 0;
		this.name = "";
	}
	
	public Pickup(int personNum, int price, int goodsNum, String name) {
		this.identity = 2;	//表示载人载物
		this.price = price;
		this.personNum = personNum;
		this.goodsNum = goodsNum;
		this.name = name;
	}
	
	public int getPersonNum() {
		return personNum;
	}
	public int getGoodsNum() {
		return goodsNum;
	}
	public byte getModel() {
		return identity;
	}
}
